<script setup lang="ts">
import Message from '@/components/message/index'
const clickFn = () => {
  // 假定登录成功, 给用户一个成功提示
  // Message({
  //   type: 'success',
  //   text: '登录成功',
  // })
  Message.success('登录成功', 3000)
}
</script>
<template>
  <div class="box">
    <button @click="clickFn">登录</button>
  </div>
</template>

<style scoped lang="less"></style>